﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Innovacall.MyPrettyCMS.PlugIns.PI_ContactManager_ResourcesLayer.Properties;
using MPC_PI_ContactManager.Models.ClientFilesGenerationModels;

namespace MPC_PI_ContactManager.Controllers.ClientFilesGenerationControllers
{
    public class ScriptsGController : _ClientFilesGenerationControllers_Base
    {
        private ScriptGModel _toReturn;
        protected ScriptGModel toReturn
        {
            get
            {
                if (_toReturn == null)
                {
                    _toReturn = new ScriptGModel();
                    _toReturn.Variables.Add("cap_DialogErrorTitle", Resources.View_All_DialogErrorTitle);
                    _toReturn.Variables.Add("cap_OpeningMessageTitle", Resources.View_All_cap_OpeningMessageTitle);
                    _toReturn.Variables.Add("cap_YesButtonCaption", Resources.cap_YesButtonCaption);
                    _toReturn.Variables.Add("cap_NoButtonCaption", Resources.cap_NoButtonCaption);
                }
                return _toReturn;
            }
        }

        /// <summary>
        /// GET: /ScriptsG/HomeDynamic.js
        /// </summary>
        /// <returns></returns>
        public ActionResult HomeDynamic()
        {
            toReturn.Variables.Add("ControllerName", "Home");
            Response.ContentType = "text/javascript";
            return View(toReturn);
        }

        /// <summary>
        /// GET: /ScriptsG/inoContactsDynamic.js
        /// </summary>
        /// <returns></returns>
        public ActionResult ContactsDynamic()
        {
            toReturn.Variables.Add("ControllerName", "Home");
            Response.ContentType = "text/javascript";
            return View(toReturn);
        }

    }
}
